<?php

declare(strict_types=1);

namespace App\Controller\Rpc;

use App\Controller\AbstractController;
use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use App\Service\UserService\LRPService;

/**
 * 理肤泉业务对接中心
 * @Controller(prefix="/LRP")
 */
class LRPController extends AbstractController
{
    /**
     * @RequestMapping(path="userInfo", methods="post")
     * 用户查询
     * @param RequestInterface $request
     */
    public function userInfo(RequestInterface $request,LRPService $LRPService)
    {
        return $LRPService->userInfo($request->getParsedBody());
    }
    
    /**
     * @RequestMapping(path="userRegister", methods="post")
     * 用户注册
     * @param RequestInterface $request
     */
    public function userRegister(RequestInterface $request,LRPService $LRPService)
    {
        return $LRPService->userRegister($request->getParsedBody());
    }

    /**
     * @RequestMapping(path="queryMemberGrade", methods="post")
     * 查询会员当前等级
     * @param RequestInterface $request
     */
    public function queryMemberGrade(RequestInterface $request,LRPService $LRPService)
    {
        return $LRPService->queryMemberGrade($request->getParsedBody());
    }
    
    /**
     * @RequestMapping(path="queryMemberPoints", methods="post")
     * 查询会员积分
     * @param RequestInterface $request
     */
    public function queryMemberPoints(RequestInterface $request,LRPService $LRPService)
    {
        return $LRPService->queryMemberPoints($request->getParsedBody());
    }
    /**
     * @RequestMapping(path="queryMemberGradeCalculator", methods="post")
     * 查询会员距离下一等级还需要消费多少
     * @param RequestInterface $request
     */
    public function queryMemberGradeCalculator(RequestInterface $request,LRPService $LRPService)
    {
        return $LRPService->queryMemberGradeCalculator($request->getParsedBody());
    }
    /**
     * @RequestMapping(path="queryTierList", methods="post")
     * 查询全部会员等级
     * @param RequestInterface $request
     */
    public function queryTierList(RequestInterface $request,LRPService $LRPService)
    {
        return $LRPService->queryTierList($request->getParsedBody());
    }
    /**
     * @RequestMapping(path="improveMemberInfo", methods="post")
     * 完善会员信息
     * @param RequestInterface $request
     */
    public function improveMemberInfo(RequestInterface $request,LRPService $LRPService)
    {
        return $LRPService->improveMemberInfo($request->getParsedBody());
    }
    /**
     * @RequestMapping(path="uploadOrderInfo", methods="post")
     * 上传订单积分接口
     * @param RequestInterface $request
     */
    public function uploadOrderInfo(RequestInterface $request,LRPService $LRPService)
    {
        return $LRPService->uploadOrderInfo($request->getParsedBody());
    }
    /**
     * @RequestMapping(path="changeMemberPoints", methods="post")
     * 会员积分变更接口
     * @param RequestInterface $request
     */
    public function changeMemberPoints(RequestInterface $request,LRPService $LRPService)
    {
        return $LRPService->changeMemberPoints($request->getParsedBody());
    }
    /**
     * @RequestMapping(path="queryMemberPointChangeStatus", methods="post")
     * 会员积分变更状态查询接口
     * @param RequestInterface $request
     */
    public function queryMemberPointChangeStatus(RequestInterface $request,LRPService $LRPService)
    {
        return $LRPService->queryMemberPointChangeStatus($request->getParsedBody());
    }
    /**
     * @RequestMapping(path="submitGiftInfo", methods="post")
     * 上传兑换信息(新)接口
     * @param RequestInterface $request
     */
    public function submitGiftInfo(RequestInterface $request,LRPService $LRPService)
    {
        return $LRPService->submitGiftInfo($request->getParsedBody());
    }
    /**
     * @RequestMapping(path="info", methods="post")
     * 综合查询接口接口
     * @param RequestInterface $request
     */
    public function info(RequestInterface $request,LRPService $LRPService)
    {
        return $LRPService->info($request->getParsedBody());
    }

    /**
     * @RequestMapping(path="updateOrderStatus", methods="post")
     * 订单状态更新接口
     * @param RequestInterface $request
     */
    public function updateOrderStatus(RequestInterface $request,LRPService $LRPService)
    {
        return $LRPService->updateOrderStatus($request->getParsedBody());
    }
}